<?php /* Smarty version 2.6.13, created on 2009-01-08 15:58:05
         compiled from testmodule_next.tpl */ ?>
<FORM method="post" action="/testmodule/next/">
    <H1>Прохождение теста '<?php echo $this->_tpl_vars['TestModule']->name; ?>
'</H1>
    <a href="<?php echo $this->_tpl_vars['fvConfig']->get('dir_web_root'); ?>
own/listtest/" onclick="go('<?php echo $this->_tpl_vars['fvConfig']->get('dir_web_root'); ?>
testmodule/'); return false;" class="left">вернутся к списку</a>
    <fieldset>
        <legend>Информация</legend>
        <p><?php echo $this->_tpl_vars['Question']['text']; ?>
</p>
        <?php $_from = $this->_tpl_vars['Question']['answers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['text'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['text']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['answer']):
        $this->_foreach['text']['iteration']++;
?>
        <p><input name="answer" value="<?php echo $this->_tpl_vars['key']+1; ?>
" id="answer_<?php echo $this->_tpl_vars['key']; ?>
" type="radio"><?php echo $this->_tpl_vars['answer']['answer']; ?>
</p>
        <?php endforeach; endif; unset($_from); ?>
    </fieldset>
    <input type="hidden" id="redirect" name="redirect" value="" />
    <?php if ($this->_tpl_vars['question_id'] > 8): ?>
    	<input type="submit" id="finish" name="redirect" value="Закончить"  onclick="$('redirect').value = 'finish';">
    <?php else: ?>
    	<input type="submit" id="submit" name="submit" value="Продолжить">
    <?php endif; ?>
    
</FORM>